﻿package  
{
	import flash.display.Sprite;
	/**
	 * 垂直的线条,上面有一个小球,跟随lv3的坐标滚动
	 *
	 * @author zhengzihua
	 */
	public class VerticalLine extends Sprite
	{
		private var line:Sprite;
		private var _ball:Ball;
		public function VerticalLine() 
		{
			init();
		}
		private function init():void {
			line=new Sprite();
			_ball = new Ball();
			drawLine();			
			
			addChild(line);
			addChild(ball);
		}
		private function drawLine():void {
			line.graphics.lineStyle(StaticInfo.LINE_THICKNESS,StaticInfo.LINE_COLOR,0.5);
			line.graphics.moveTo(0, 0);
			line.graphics.lineTo(0, 440);
		}
		
		public function get ball():Ball{
			return _ball;
		}
	}

}